#include "stdafx.h"
#include "RenderMgr.h"

namespace WindGE
{
	RenderMgr::RenderMgr()
	{
	}

	RenderMgr::~RenderMgr()
	{
	}

	bool RenderMgr::init(RenderDevicePtr renderDevice)
	{
		render_device_ = renderDevice;

		if (!on_init()) return false;

		return true;
	}

	void RenderMgr::resize(float width, float height)
	{
		on_resize(width, height);
	}

	void RenderMgr::update()
	{
		on_update();
	}

	void RenderMgr::draw()
	{
		on_draw();
	}

	bool RenderMgr::on_init()
	{
		return true;
	}

	void RenderMgr::on_resize(float width, float height)
	{
	}

	void RenderMgr::on_update()
	{
	}

	void RenderMgr::on_draw()
	{
	}
}

